export default {
    color: "#ff5000",
    title: {
        text: "title",
        textStyle: {
            color: "#ff5000",
        },
        top: 10,
        left: "center", //居中显示
    },
    grid: {
        left: 60,
        right: 60,
        top: 70,
        bottom: 40,
    },
    xAxis: {
        type: "category",
        data: ["X1", "X2", "X3", "X4", "X5", "X6", "X7"],
        boundaryGap: false, //两侧是否留白
        name: "xName",
        axisTick: {
            inside: true, //控制刻度向内还是向外伸出
        },
        axisLabel: {
            margin: 12,
        },
        nameTextStyle: {
            fontSize: 15,
        },
        axisLine: {
            show: true,
            symbol: ["none", "arrow"],
            symbolSize: [8, 12],
            symbolOffset: 10
        },
    },
    yAxis: {
        type: "value",
        name: "yName",
        max: 100,
        min: 0,
        nameTextStyle: {
            fontSize: 15,
        },
        axisLine: {
            show: true,
            symbol: ["none", "arrow"],
            symbolSize: [8, 12],
            symbolOffset: 10
        },
        axisTick: {
            show: true,
            inside: true
        },
        splitNumber: 10, //这只是个预估值，最后实际显示的段数会在这个基础上根据分割后坐标轴刻度显示的易读程度作调整
        splitLine: {
            lineStyle: {
                type: "dashed",
            },
        },
    },
    tooltip: {
        trigger: "axis",
    },
    toolbox: {
        show: true,
        itemSize: 15,
        iconStyle: {
            borderColor: "#ff5000",
            borderWidth: 2
        },
        feature: {
            dataZoom: {
                show: false,
            },
            dataView: {
                show: false
            },
            magicType: {
                type: ["line", "bar"],
                title:{
                    line: "切换为折线图",
                    bar: "切换为柱状图"
                }
            },
            // iconStyle:{
            //     color: "#ff5000"
            // },
            restore: {
                title:"还原"
            },
            saveAsImage: {
                title:"保存图片"
            }
        },
        orient: "horizontal"
    },
    series: [{
        type: "line",
        data: [10, 30, 24, 18, 35, 47, 60],
    }],
}